<?php

namespace Acme\FirmUsersBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class RegistrClientUser extends AbstractType {
    
    public function buildForm(FormBuilder $builder, array $options) {
        $builder->add('username', 'text');
        $builder->add('email', 'email');
        $builder->add('password', 'password');
        $builder->add('captcha', 'captcha');
    }
    
    public function getDefaultOptions(array $options) {
        return array(
            'data_class'      => 'Acme\FirmUsersBundle\Entity\User',
            'csrf_protection' => true,
            'csrf_field_name' => '_token',
            // a unique key to help generate the secret token
            'intention'       => 'id',
        );
    }
    
    public function getName() {
        return 'registr';
    }
    
}
?>
